<?php

/**
 * Represents the user and his/her data
 */
class Person extends EMongoDocument{

	private $firstName;
	private $lastName;
	private $birthdate;

	function rules() {
		return array(
			array('_id, firstname, lastname', 'safe', 'on'=>'search'),
		);
	}
	
	function collectionName(){
		return 'account';
	}
	
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
	
	public function getFirstName() {
		return $this->firstName;
	}
	
	public function getLastName() {
		return $this->lastName;
	}
	
	public function getBirthdate() {
		return $this->birthdate;
	}
}